Change in openvpn[master]: dco: fix crash when --multihome is used with --proto tcp
A message that is not in the archive (sent off-list or not yet received): gerrit.1692141606000.I61adc26ce2ff737e020c3d980902a46758cb23e5@...2715...
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/324?usp=email
to review the following change.
Change subject: dco: fix crash when --multihome is used with --proto tcp
......................................................................
dco: fix crash when --multihome is used with --proto tcp
Although it's a combination of options that is not really useful, when specifying --multihome along with --proto tcp and DCO is enabled, OpenVPN will crash while attempting to access c2.link_socket_actual (NULL for the TCP case) in order to retrieve the local address (in function dco_multi_get_localaddr())
Prevent crash by running this code only if proto is UDP. The same check is already performed in socket.c/h for the non-DCO case.
---
M src/openvpn/dco.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/24/324/1
src/openvpn/dco.c +1 -1
@@ -509,7 +509,7 @@#if ENABLE_IP_PKTINFO struct context *c = &mi->context; -if (!(c->options.sockflags &SF_USE_IP_PKTINFO )) +if (!proto_is_udp (c->c2.link_socket->info.proto) || !(c->options.sockflags &SF_USE_IP_PKTINFO )) {return false; }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/324?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I61adc26ce2ff737e020c3d980902a46758cb23e5
Gerrit-Change-Number: 324
Gerrit-PatchSet: 1
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
cron2 has uploaded a new patch set (#2) to the change originally created by ordex. ( http://gerrit.openvpn.net/c/openvpn/+/324?usp=email )
Change subject: dco: fix crash when --multihome is used with --proto tcp
......................................................................
dco: fix crash when --multihome is used with --proto tcp
Although it's a combination of options that is not really useful, when specifying --multihome along with --proto tcp and DCO is enabled, OpenVPN will crash while attempting to access c2.link_socket_actual (NULL for the TCP case) in order to retrieve the local address (in function dco_multi_get_localaddr())
Prevent crash by running this code only if proto is UDP. The same check is already performed in socket.c/h for the non-DCO case.
Github: fixes OpenVPN/openvpn#390
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26953.html
---
M src/openvpn/dco.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/24/324/2
src/openvpn/dco.c +1 -1
@@ -509,7 +509,7 @@#if ENABLE_IP_PKTINFO struct context *c = &mi->context; -if (!(c->options.sockflags &SF_USE_IP_PKTINFO )) +if (!proto_is_udp (c->c2.link_socket->info.proto) || !(c->options.sockflags &SF_USE_IP_PKTINFO )) {return false; }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/324?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I61adc26ce2ff737e020c3d980902a46758cb23e5
Gerrit-Change-Number: 324
Gerrit-PatchSet: 2
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/324?usp=email )
Change subject: dco: fix crash when --multihome is used with --proto tcp
......................................................................
dco: fix crash when --multihome is used with --proto tcp
Although it's a combination of options that is not really useful, when specifying --multihome along with --proto tcp and DCO is enabled, OpenVPN will crash while attempting to access c2.link_socket_actual (NULL for the TCP case) in order to retrieve the local address (in function dco_multi_get_localaddr())
Prevent crash by running this code only if proto is UDP. The same check is already performed in socket.c/h for the non-DCO case.
Github: fixes OpenVPN/openvpn#390
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26953.html
---
M src/openvpn/dco.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/dco.c +1 -1
@@ -509,7 +509,7 @@#if ENABLE_IP_PKTINFO struct context *c = &mi->context; -if (!(c->options.sockflags &SF_USE_IP_PKTINFO )) +if (!proto_is_udp (c->c2.link_socket->info.proto) || !(c->options.sockflags &SF_USE_IP_PKTINFO )) {return false; }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/324?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I61adc26ce2ff737e020c3d980902a46758cb23e5
Gerrit-Change-Number: 324
Gerrit-PatchSet: 2
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged